home *** CD-ROM | disk | FTP | other *** search
Wrap
<%@ Language=VBScript CODEPAGE=65001 %> <!--#include file="wmssecure/include/wmsConstants.inc"--> <!--#include file="wmssecure/include/wmsLocStrings.inc"--> <!--#include file="wmssecure/include/wmsServerHash.inc"--> <!--#include file="wmssecure/include/wmsconnect.inc"--> <!--#include file="wmssecure/include/wmsCommon.inc"--> <!--#include file="wmssecure/include/wmsHeader.inc"--> <% '+------------------------------------------------------------------------- ' ' Microsoft Windows Media ' Copyright (C) Microsoft Corporation. All rights reserved. ' ' File: WMSLogOff.asp ' ' Contents: Exit screen ' '-------------------------------------------------------------------------- Dim bCloseOnLoad bCloseOnLoad = CBool( 0 < Len( Request.QueryString( "close" ) ) ) BrowserSniff WriteHTMLHeader( L_LOGOFF_TEXT ) %> <link rel="stylesheet" type="text/css" href="wmsStyles.css"> <script language="JavaScript" src="/wmssecure/include/WMSCommon.js"></script> <script language="JavaScript"> /*@cc_on @*/ //////////////////////////////////////////////////////////////// function UseSingleFrame() { /*@if (@_jscript_version >= 1.3) try { @end @*/ if( window.parent != window ) { <% if( brMSIE <> dwBrowserType ) then %> parent.document.location = parent.document.location.protocol + "//" + parent.document.location.host + "/wmslogoff.asp?<%= RemoveDangerousCharacters( Request.QueryString() ) %>"; <% else %> document.parentWindow.parent.parent.location = document.parentWindow.parent.parent.location.protocol + "//" + document.parentWindow.parent.parent.location.host + "/wmslogoff.asp?<%= RemoveDangerousCharacters( Request.QueryString() ) %>"; <% end if %> } /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } //////////////////////////////////////////////////////////////// function CloseBrowserWindow() { /*@if (@_jscript_version >= 1.3) try { @end @*/ window.close(); /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } </script> </head> <body bgcolor="white" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" onload="JavaScript:UseSingleFrame();<% if bCloseOnLoad then %>CloseBrowserWindow();<% end if %>window.focus();"> <br/> <table width="100%" bgcolor="white" cellpadding="0" cellspacing="0" border="0" ID="Table1"> <tr> <td width="10"> </td> <td width="220" height="40" align="left" valign="middle"> <img src="wmssecure/img/treebanner.gif" width="220" height="40" border="0"> </td> <td align="center" valign="center"> <center><div class="servername"><%= Server.HTMLEncode( L_LOGOFFTITLE_TEXT ) %></div></center> </td> <td width="220" width="40" align="right"> </td> <td width="10" align="right"> </td> </tr> </table> <br/> <table cellspacing="0" cellpadding="0" border="0" ID="Table3" width="100%"> <tr> <td width="10"> </td> <td colspan="2" width="99%"> <p> <div class="useragent"><br> <%= Request.ServerVariables( "HTTP_USER_AGENT" ) %><br> </div> <p> <div class="helptext"><%= Server.HTMLEncode( L_LOGOFFHELP_TEXT ) %> </div> </td> </tr> <tr> <td> </td> <td colspan="2"> <br> <img src="/wmssecure/img/WMSSpacer.gif" width="2" height="14"> </td> </tr> <tr> <td colspan="3" align="center"> <button title="<%= Server.HTMLEncode( L_CLOSEBTNHELP_TEXT ) %>" tabIndex="1" class="closebutton" onClick="JavaScript:CloseBrowserWindow();"><%= Server.HTMLEncode( L_CLOSEBTN_TEXT ) %></button> </td> </tr> </table> </body> <script language="Javascript"> /*@cc_on @*/ /*@if (@_jscript_version >= 1.3) try { @end @*/ UseSingleFrame(); /*@if (@_jscript_version >= 1.3) } catch( error ) { } @end @*/ <% Dim strProtocol Dim strServer Dim strPathInfo Dim strUsername strUsername = Server.HTMLEncode( Request.ServerVariables( "LOGON_USER" ) ) if( 0 = StrComp( "on", Request.ServerVariables( "HTTPS" ), vbTextCompare ) ) then strProtocol = "https://" & strUsername & ":pass@" else strProtocol = "http://" & strUsername & ":pass@" end if ' strProtocol = Request.ServerVariables( "PROTOCOL" ) strServer = Request.ServerVariables( "HTTP_HOST" ) strPathInfo = Request.ServerVariables( "PATH_INFO" ) ' Response.Redirect( strProtocol & strServer & strPathInfo ) %> </script> </html> <% on error resume next Session.Timeout = 0 Session.Abandon Dim objSession Set objSession = Session( "CurSession" ) objSession.Logoff strProtocol = Request.ServerVariables( "PROTOCOL" ) strServer = Request.ServerVariables( "HTTP_HOST" ) strPathInfo = Request.ServerVariables( "PATH_INFO" ) %>